package com.estudos.controller;

import javax.persistence.EntityManager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;

import com.estudos.model.Permissao;
import com.estudos.model.Usuario;
import com.estudos.service.IndexService;
import com.sun.xml.internal.bind.v2.runtime.Name;

@Controller
public class IndexController {
	@Autowired
	IndexService indexServico;
	
	public IndexController(){
		System.out.println("aaaaaaaaaaaa Inicializou o indexController!");
	}
	@RequestMapping(value="/home")
	public ModelAndView showPageLogin(){
		return indexServico.showPgIndex();
	}
	
	
	
}
